title = "晨钓"
author = "作者: 张军"
lines = [
    "披星早向五更天，踏露垂纶野水边。",
    "辨迹寻窝投饵准，凝神测底望漂悬。",
    "银鳞觅食草丛动，金鲤吞钩鱼护阗。",
    "独坐矶头尘世远，清波照影共悠然。"
]
# 获取最长诗句的长度
max_line_length = max(len(line) for line in lines)

title_width =max_line_length + 10
# 居中打印标题
print(title.center(title_width))
# 居中打印作者
print(author.center(title_width))
print()
for line in lines:
    print(line)
 